package com.midou.administration.bo;

import com.midou.administration.entity.Users;
import lombok.Data;

/**
 * 消息类
 */
@Data
public class Msg {

    public Msg(){}

    public Msg(Boolean result, String msg) {
        this.result = result;
        this.msg = msg;
    }


    private Boolean result;
    private String msg;
    private String token;       //验证

    //登录成功后返回的值
    //需要包含用户的个人信息
    private String userName;   //用户昵称
    private Integer userId;    //用户主键

    //用户信息对象
    private Users users;

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
